import request from '@/utils/request'

// 查询社保缴纳列表
export function listSocialInsncData(query) {
  return request({
    url: '/hrm/socialInsncData/list',
    method: 'get',
    params: query
  })
}

// 查询社保缴纳详细
export function getSocialInsncData(id) {
  return request({
    url: '/hrm/socialInsncData/' + id,
    method: 'get'
  })
}

// 新增社保缴纳
export function addSocialInsncData(data) {
  return request({
    url: '/hrm/socialInsncData',
    method: 'post',
    data: data
  })
}

// 修改社保缴纳
export function updateSocialInsncData(data) {
  return request({
    url: '/hrm/socialInsncData',
    method: 'put',
    data: data
  })
}

// 删除社保缴纳
export function delSocialInsncData(id) {
  return request({
    url: '/hrm/socialInsncData/' + id,
    method: 'delete'
  })
}

//统计列表
export function getStatistics(data){
    return request({
        url: '/hrm/socialInsncData/getStatistics',
        method: 'post',
        data: data
    })
}


//查询是否需要初始化
export function getMaxMonth(){
    return request({
        url: '/hrm/socialInsncData/getMaxMonth',
        method: 'get',
    })
}
//计算
export function calcData(data){
    return request({
        url: '/hrm/socialInsncData/calcData',
        method: 'post',
        data: data
    })
}
